package net.pws.oos.web.dto;

import java.util.Map;

import net.pws.common.beanutils.BeanUtils;
import net.pws.oos.biz.model.NoticeReceiver;

@SuppressWarnings("rawtypes")
public class NoticeReceiverDto extends NoticeReceiver {

    private static final long serialVersionUID = 6452680310261359901L;
    
    public static NoticeReceiverDto from(Map map) {
        if(map == null) {
            return null;
        }
        
        NoticeReceiverDto dto = new NoticeReceiverDto();
        BeanUtils.copyProperties(dto, map);
        return dto;
    }
    
    private String receiverId;
    
    private String receiverName;
    
    private String receiverOrganName;

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

	public String getReceiverOrganName() {
		return receiverOrganName;
	}

	public void setReceiverOrganName(String receiverOrganName) {
		this.receiverOrganName = receiverOrganName;
	}
    
}
